import {Provider} from 'react-redux';
import React from 'react';

import App from './appView';
import creatStore from './store';
import NavigationService from './NavigationService';

const initialState = {
    // count: 1
}

const store = creatStore(initialState);

export default class Root extends React.Component{
    render() {
        return (
            <Provider store={store}>
            <App ref={navigatorRef => {
                NavigationService.setTopLevelNavigator(navigatorRef);
            }}/>
            </Provider>
        )
    }
}
